Repetier-Firmware  1.0.0
ui.h
Go to the documentation of this file.
1 /*
2  This file is part of Repetier-Firmware.
3 
4  Repetier-Firmware is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  Repetier-Firmware is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with Repetier-Firmware. If not, see <http://www.gnu.org/licenses/>.
16 
17 */
18 
19 #ifndef _ui_h
20 #define _ui_h
21 
22 //#include "gcode.h"
23 
24 #define NO_DISPLAY 0
25 #define DISPLAY_4BIT 1
26 #define DISPLAY_8BIT 2
27 #define DISPLAY_I2C 3
28 #define DISPLAY_ARDUINO_LIB 4
29 #define DISPLAY_U8G 5
30 #define DISPLAY_GAMEDUINO2 6
31 #define DISPLAY_SR 7
32 
47 // ----------------------------------------------------------------------------
48 // Action codes
49 // 1-999 : Autorepeat
50 // 1000-1999 : Execute
51 // 2000-2999 : Write code
52 // 4000-4999 : Show menu
53 // 5000-5999 : Wizard pages
54 // Add UI_ACTION_TOPMENU to show a menu as top menu
55 // Add UI_ACTION_NO_AUTORETURN to prevent auto return to start display
56 // ----------------------------------------------------------------------------
57 
58 #define UI_ACTION_TOPMENU 8192
59 #define UI_ACTION_NO_AUTORETURN 16384
60 
61 #define UI_ACTION_NEXT 1
62 #define UI_ACTION_PREVIOUS 2
63 
64 #define UI_ACTION_X_UP 100
65 #define UI_ACTION_X_DOWN 101
66 #define UI_ACTION_Y_UP 102
67 #define UI_ACTION_Y_DOWN 103
68 #define UI_ACTION_Z_UP 104
69 #define UI_ACTION_Z_DOWN 105
70 #define UI_ACTION_EXTRUDER_UP 106
71 #define UI_ACTION_EXTRUDER_DOWN 107
72 #define UI_ACTION_EXTRUDER_TEMP_UP 108
73 #define UI_ACTION_EXTRUDER_TEMP_DOWN 109
74 #define UI_ACTION_HEATED_BED_UP 110
75 #define UI_ACTION_HEATED_BED_DOWN 111
76 #define UI_ACTION_FAN_UP 112
77 #define UI_ACTION_FAN_DOWN 113
78 // 700-999 reserved for custom events.
79 
80 
81 #define UI_ACTION_DUMMY 10000
82 #define UI_ACTION_BACK 1000
83 #define UI_ACTION_OK 1001
84 #define UI_ACTION_MENU_UP 1002
85 #define UI_ACTION_TOP_MENU 1003
86 #define UI_ACTION_EMERGENCY_STOP 1004
87 #define UI_ACTION_XPOSITION 1005
88 #define UI_ACTION_YPOSITION 1006
89 #define UI_ACTION_ZPOSITION 1007
90 #define UI_ACTION_EPOSITION 1008
91 #define UI_ACTION_BED_TEMP 1009
92 #define UI_ACTION_EXTRUDER_TEMP 1010
93 #define UI_ACTION_SD_DELETE 1012
94 #define UI_ACTION_SD_PRINT 1013
95 #define UI_ACTION_SD_PAUSE 1014
96 #define UI_ACTION_SD_CONTINUE 1015
97 #define UI_ACTION_SD_UNMOUNT 1016
98 #define UI_ACTION_SD_MOUNT 1017
99 #define UI_ACTION_XPOSITION_FAST 1018
100 #define UI_ACTION_YPOSITION_FAST 1019
101 #define UI_ACTION_ZPOSITION_FAST 1020
102 #define UI_ACTION_HOME_ALL 1021
103 #define UI_ACTION_HOME_X 1022
104 #define UI_ACTION_HOME_Y 1023
105 #define UI_ACTION_HOME_Z 1024
106 #define UI_ACTION_STORE_EEPROM 1030
107 #define UI_ACTION_LOAD_EEPROM 1031
108 #define UI_ACTION_PRINT_ACCEL_X 1032
109 #define UI_ACTION_PRINT_ACCEL_Y 1033
110 #define UI_ACTION_PRINT_ACCEL_Z 1034
111 #define UI_ACTION_MOVE_ACCEL_X 1035
112 #define UI_ACTION_MOVE_ACCEL_Y 1036
113 #define UI_ACTION_MOVE_ACCEL_Z 1037
114 #define UI_ACTION_MAX_JERK 1038
115 #define UI_ACTION_MAX_ZJERK 1039
116 #define UI_ACTION_BAUDRATE 1040
117 #define UI_ACTION_HOMING_FEEDRATE_X 1041
118 #define UI_ACTION_HOMING_FEEDRATE_Y 1042
119 #define UI_ACTION_HOMING_FEEDRATE_Z 1043
120 #define UI_ACTION_MAX_FEEDRATE_X 1044
121 #define UI_ACTION_MAX_FEEDRATE_Y 1045
122 #define UI_ACTION_MAX_FEEDRATE_Z 1046
123 #define UI_ACTION_STEPS_X 1047
124 #define UI_ACTION_STEPS_Y 1048
125 #define UI_ACTION_STEPS_Z 1049
126 #define UI_ACTION_FAN_OFF 1050
127 #define UI_ACTION_FAN_25 1051
128 #define UI_ACTION_FAN_50 1052
129 #define UI_ACTION_FAN_75 1053
130 #define UI_ACTION_FAN_FULL 1054
131 #define UI_ACTION_FEEDRATE_MULTIPLY 1055
132 #define UI_ACTION_STEPPER_INACTIVE 1056
133 
134 #define UI_ACTION_PID_PGAIN 1058
135 #define UI_ACTION_PID_IGAIN 1059
136 #define UI_ACTION_PID_DGAIN 1060
137 #define UI_ACTION_DRIVE_MIN 1061
138 #define UI_ACTION_DRIVE_MAX 1062
139 #define UI_ACTION_X_OFFSET 1063
140 #define UI_ACTION_Y_OFFSET 1064
141 #define UI_ACTION_EXTR_STEPS 1065
142 #define UI_ACTION_EXTR_ACCELERATION 1066
143 #define UI_ACTION_EXTR_MAX_FEEDRATE 1067
144 #define UI_ACTION_EXTR_START_FEEDRATE 1068
145 #define UI_ACTION_EXTR_HEATMANAGER 1069
146 #define UI_ACTION_EXTR_WATCH_PERIOD 1070
147 #define UI_ACTION_PID_MAX 1071
148 #define UI_ACTION_ADVANCE_K 1072
149 #define UI_ACTION_SET_ORIGIN 1073
150 
151 #define UI_ACTION_POWER 1078
152 #define UI_ACTION_PREHEAT_SINGLE 1079
153 #define UI_ACTION_COOLDOWN 1080
154 #define UI_ACTION_HEATED_BED_OFF 1081
155 #define UI_ACTION_EXTRUDER0_OFF 1082
156 #define UI_ACTION_EXTRUDER1_OFF 1083
157 #define UI_ACTION_EXTRUDER2_OFF 1084
158 #define UI_ACTION_EXTRUDER3_OFF 1085
159 #define UI_ACTION_EXTRUDER4_OFF 1086
160 #define UI_ACTION_EXTRUDER5_OFF 1087
161 #define UI_ACTION_OPS_OFF 1088
162 #define UI_ACTION_OPS_CLASSIC 1089
163 #define UI_ACTION_OPS_FAST 1090
164 #define UI_ACTION_DISABLE_STEPPER 1091
165 #define UI_ACTION_RESET_EXTRUDER 1092
166 #define UI_ACTION_EXTRUDER_RELATIVE 1093
167 #define UI_ACTION_ADVANCE_L 1094
168 #define UI_ACTION_PREHEAT_ALL 1095
169 #define UI_ACTION_FLOWRATE_MULTIPLY 1096
170 #define UI_ACTION_KILL 1097
171 #define UI_ACTION_RESET 1098
172 #define UI_ACTION_PAUSE 1099
173 #define UI_ACTION_EXTR_WAIT_RETRACT_TEMP 1100
174 #define UI_ACTION_EXTR_WAIT_RETRACT_UNITS 1101
175 #define UI_ACTION_WRITE_DEBUG 1105
176 #define UI_ACTION_FANSPEED 1106
177 #define UI_ACTION_LIGHTS_ONOFF 1107
178 #define UI_ACTION_SD_STOP 1108
179 #define UI_ACTION_ZPOSITION_NOTEST 1109
180 #define UI_ACTION_ZPOSITION_FAST_NOTEST 1110
181 #define UI_ACTION_Z_BABYSTEPS 1111
182 #define UI_ACTION_MAX_INACTIVE 1112
183 #define UI_ACTION_TEMP_DEFECT 1113
184 #define UI_ACTION_BED_HEATMANAGER 1114
185 #define UI_ACTION_BED_PGAIN 1115
186 #define UI_ACTION_BED_IGAIN 1116
187 #define UI_ACTION_BED_DGAIN 1117
188 #define UI_ACTION_BED_DRIVE_MIN 1118
189 #define UI_ACTION_BED_DRIVE_MAX 1119
190 #define UI_ACTION_BED_MAX 1120
191 #define UI_ACTION_HEATED_BED_TEMP 1121
192 #define UI_ACTION_EXTRUDER0_TEMP 1122
193 #define UI_ACTION_EXTRUDER1_TEMP 1123
194 #define UI_ACTION_EXTRUDER2_TEMP 1124
195 #define UI_ACTION_EXTRUDER3_TEMP 1125
196 #define UI_ACTION_EXTRUDER4_TEMP 1126
197 #define UI_ACTION_EXTRUDER5_TEMP 1127
198 #define UI_ACTION_SELECT_EXTRUDER0 1128
199 #define UI_ACTION_SELECT_EXTRUDER1 1129
200 #define UI_ACTION_SELECT_EXTRUDER2 1130
201 #define UI_ACTION_SELECT_EXTRUDER3 1131
202 #define UI_ACTION_SELECT_EXTRUDER4 1132
203 #define UI_ACTION_SELECT_EXTRUDER5 1133
204 #define UI_DITTO_0 1134
205 #define UI_DITTO_1 1135
206 #define UI_DITTO_2 1136
207 #define UI_DITTO_3 1137
208 
209 #define UI_ACTION_DEBUG_ECHO 1150
210 #define UI_ACTION_DEBUG_INFO 1151
211 #define UI_ACTION_DEBUG_ERROR 1152
212 #define UI_ACTION_DEBUG_DRYRUN 1153
213 #define UI_ACTION_DEBUG_ENDSTOP 1154
214 
215 #define UI_ACTION_SD_PRI_PAU_CONT 1200
216 #define UI_ACTION_FAN_SUSPEND 1201
217 #define UI_ACTION_AUTOLEVEL_ONOFF 1202
218 #define UI_ACTION_SERVOPOS 1203
219 #define UI_ACTION_IGNORE_M106 1204
220 
221 #define UI_ACTION_KAPTON 1205
222 #define UI_ACTION_BLUETAPE 1206
223 #define UI_ACTION_NOCOATING 1207
224 #define UI_ACTION_PETTAPE 1208
225 #define UI_ACTION_GLUESTICK 1209
226 #define UI_ACTION_RESET_MATRIX 1210
227 #define UI_ACTION_CALIBRATE 1211
228 #define UI_ACTION_BED_LED_CHANGE 1212
229 #define UI_ACTION_COATING_CUSTOM 1213
230 #define UI_ACTION_BUILDTAK 1214
231 
232 #define UI_ACTION_CONTINUE 1220
233 #define UI_ACTION_STOP 1221
234 #define UI_ACTION_STOP_CONFIRMED 1222
235 #define UI_ACTION_FAN2SPEED 1223
236 #define UI_ACTION_AUTOLEVEL 1224
237 #define UI_ACTION_MEASURE_DISTORTION 1225
238 #define UI_ACTION_TOGGLE_DISTORTION 1226
239 #define UI_ACTION_MESSAGE 1227
240 #define UI_ACTION_STATE 1228
241 #define UI_ACTION_AUTOLEVEL2 1229
242 #define UI_ACTION_MEASURE_DISTORTION2 1230
243 #define UI_ACTION_BED_PREHEAT 1231
244 #define UI_ACTION_EXT0_PREHEAT 1232
245 #define UI_ACTION_EXT1_PREHEAT 1233
246 #define UI_ACTION_EXT2_PREHEAT 1234
247 #define UI_ACTION_EXT3_PREHEAT 1235
248 #define UI_ACTION_EXT4_PREHEAT 1236
249 #define UI_ACTION_EXT5_PREHEAT 1237
250 #define UI_ACTION_MEASURE_ZPROBE_HEIGHT 1238
251 #define UI_ACTION_MEASURE_ZPROBE_HEIGHT2 1239
252 #define UI_ACTION_MEASURE_ZP_REALZ 1240
253 #define UI_ACTION_Z_OFFSET 1241
254 #define UI_ACTION_TOGGLE_JAMCONTROL 1242
255 
256 // 1500-1699 reserved for custom actions
257 
258 // 1700-1956 language selectors
259 
260 #define UI_ACTION_LANGUAGE_EN 1700
261 #define UI_ACTION_LANGUAGE_DE 1701
262 #define UI_ACTION_LANGUAGE_NL 1702
263 #define UI_ACTION_LANGUAGE_PT 1703
264 #define UI_ACTION_LANGUAGE_IT 1704
265 #define UI_ACTION_LANGUAGE_ES 1705
266 #define UI_ACTION_LANGUAGE_SE 1706
267 #define UI_ACTION_LANGUAGE_FR 1707
268 #define UI_ACTION_LANGUAGE_CZ 1708
269 #define UI_ACTION_LANGUAGE_PL 1709
270 #define UI_ACTION_LANGUAGE_TR 1710
271 #define UI_ACTION_LANGUAGE_FI 1711
272 
273 #define UI_ACTION_MENU_XPOS 4000
274 #define UI_ACTION_MENU_YPOS 4001
275 #define UI_ACTION_MENU_ZPOS 4002
276 #define UI_ACTION_MENU_XPOSFAST 4003
277 #define UI_ACTION_MENU_YPOSFAST 4004
278 #define UI_ACTION_MENU_ZPOSFAST 4005
279 #define UI_ACTION_MENU_SDCARD 4006
280 #define UI_ACTION_MENU_QUICKSETTINGS 4007
281 #define UI_ACTION_MENU_EXTRUDER 4008
282 #define UI_ACTION_MENU_POSITIONS 4009
283 //#define UI_ACTION_SHOW_MEASUREMENT 4010
284 //#define UI_ACTION_RESET_MEASUREMENT 4011
285 #define UI_ACTION_SET_MEASURED_ORIGIN 4012
286 #define UI_ACTION_SET_P1 4013
287 #define UI_ACTION_SET_P2 4014
288 #define UI_ACTION_SET_P3 4015
289 #define UI_ACTION_CALC_LEVEL 4016
290 #define UI_ACTION_XOFF 4020
291 #define UI_ACTION_YOFF 4021
292 #define UI_ACTION_ZOFF 4022
293 
294 #define UI_ACTION_SHOW_USERMENU1 4101
295 #define UI_ACTION_SHOW_USERMENU2 4102
296 #define UI_ACTION_SHOW_USERMENU3 4103
297 #define UI_ACTION_SHOW_USERMENU4 4104
298 #define UI_ACTION_SHOW_USERMENU5 4105
299 #define UI_ACTION_SHOW_USERMENU6 4106
300 #define UI_ACTION_SHOW_USERMENU7 4107
301 #define UI_ACTION_SHOW_USERMENU8 4108
302 #define UI_ACTION_SHOW_USERMENU9 4109
303 #define UI_ACTION_SHOW_USERMENU10 4110
304 
305 #define UI_ACTION_WIZARD_FILAMENTCHANGE 5000
306 #define UI_ACTION_WIZARD_JAM_REHEAT 5001
307 #define UI_ACTION_WIZARD_JAM_WAITHEAT 5002
308 #define UI_ACTION_WIZARD_JAM_EOF 5003
309 
310 // Load basic language definition to make sure all values are defined
311 //#include "uilang.h"
312 
313 #define UI_MENU_TYPE_INFO 0
314 #define UI_MENU_TYPE_FILE_SELECTOR 1
315 #define UI_MENU_TYPE_SUBMENU 2
316 #define UI_MENU_TYPE_MODIFICATION_MENU 3
317 #define UI_MENU_TYPE_WIZARD 5
318 
320  const char *text; // Menu text
321  uint8_t entryType; // 0 = Info, 1 = Headline, 2 = sub menu ref, 3 = direct action command, 4 = modify action command,
322  unsigned int action; // must be int so it gets 32 bit on arm!
323  uint16_t filter; // allows dynamic menu filtering based on Printer::menuMode bits set.
324  uint16_t nofilter; // Hide if one of these bits are set
325  int translation; // Translation id
326  bool showEntry() const;
327 } ;
329 
330 struct UIMenu_s {
331  // 0 = info page
332  // 1 = file selector
333  // 2 = sub menu
334  // 3 = modification menu
335  // 5 = Wizard menu
336  // +128 = sticky -> no autoreturn to main menuü after timeout
337  uint8_t menuType;
338  int id; // Type of modification
340  const UIMenuEntry * const * entries;
341 };
342 typedef const UIMenu_s UIMenu;
343 
344 extern const int8_t encoder_table[16] PROGMEM ;
345 
346 //#ifdef COMPILE_I2C_DRIVER
347 
348 /*************************************************************************
349  Title: C include file for the I2C master interface
350  (i2cmaster.S or twimaster.c)
351  Author: Peter Fleury <pfleury@gmx.ch> http://jump.to/fleury
352  File: $Id: i2cmaster.h,v 1.10 2005/03/06 22:39:57 Peter Exp $
353  Software: AVR-GCC 3.4.3 / avr-libc 1.2.3
354  Target: any AVR device
355  Usage: see Doxygen manual
356 **************************************************************************/
357 
358 
359 
360 
361 
362 //extern const int matrixActions[] PROGMEM;
363 // Key codes
364 #define UI_KEYS_INIT_CLICKENCODER_LOW(pinA,pinB) SET_INPUT(pinA);SET_INPUT(pinB); PULLUP(pinA,HIGH);PULLUP(pinB,HIGH);
365 #define UI_KEYS_INIT_BUTTON_LOW(pin) SET_INPUT(pin);PULLUP(pin,HIGH);
366 #define UI_KEYS_INIT_CLICKENCODER_HIGH(pinA,pinB) SET_INPUT(pinA);SET_INPUT(pinB); PULLUP(pinA,LOW);PULLUP(pinB,LOW);
367 #define UI_KEYS_INIT_BUTTON_HIGH(pin) SET_INPUT(pin);PULLUP(pin,LOW);
368 
369 #define UI_KEYS_CLICKENCODER_LOW(pinA,pinB) uid.encoderLast = (uid.encoderLast << 2) & 0x0F;if (!READ(pinA)) uid.encoderLast |=2;if (!READ(pinB)) uid.encoderLast |=1; uid.encoderPos += pgm_read_byte(&encoder_table[uid.encoderLast]);
370 #define UI_KEYS_CLICKENCODER_LOW_REV(pinA,pinB) uid.encoderLast = (uid.encoderLast << 2) & 0x0F;if (!READ(pinA)) uid.encoderLast |=2;if (!READ(pinB)) uid.encoderLast |=1; uid.encoderPos -= pgm_read_byte(&encoder_table[uid.encoderLast]);
371 #define UI_KEYS_BUTTON_LOW(pin,action_) if(READ(pin)==0) action=action_;
372 #define UI_KEYS_CLICKENCODER_HIGH(pinA,pinB) uid.encoderLast = (uid.encoderLast << 2) & 0x0F;if (READ(pinA)) uid.encoderLast |=2;if (READ(pinB)) uid.encoderLast |=1; uid.encoderPos += pgm_read_byte(&encoder_table[uid.encoderLast]);
373 #define UI_KEYS_CLICKENCODER_HIGH_REV(pinA,pinB) uid.encoderLast = (uid.encoderLast << 2) & 0x0F;if (READ(pinA)) uid.encoderLast |=2;if (READ(pinB)) uid.encoderLast |=1; uid.encoderPos -= pgm_read_byte(&encoder_table[uid.encoderLast]);
374 #define UI_KEYS_BUTTON_HIGH(pin,action_) if(READ(pin)!=0) action=action_;
375 #define UI_KEYS_INIT_MATRIX(r1,r2,r3,r4,c1,c2,c3,c4) if(c1>=0){SET_INPUT(c1);WRITE(c1,HIGH);}if(c2>=0){SET_INPUT(c2);WRITE(c2,HIGH);}if(c3>=0){SET_INPUT(c3);WRITE(c3,HIGH);}\
376  if(c4>=0) {SET_INPUT(c4);WRITE(c4,HIGH);}if(r1>=0)SET_OUTPUT(r1);if(r2>=0)SET_OUTPUT(r2);if(r3>=0)SET_OUTPUT(r3);if(r4>=0)SET_OUTPUT(r4);\
377  if(r1>=0)WRITE(r1,LOW);if(r2>=0)WRITE(r2,LOW);if(r3>=0)WRITE(r3,LOW);if(r4>=0)WRITE(r4,LOW);
378 // out.print_int_P(PSTR("r4=>c1:"),READ(c1));out.print_int_P(PSTR(" c2:"),READ(c2));out.print_int_P(PSTR(" c3:"),READ(c3));out.println_int_P(PSTR(" c4:"),READ(c4));
379 #define UI_KEYS_MATRIX(r1,r2,r3,r4,c1,c2,c3,c4) {uint8_t r = (c1>=0?READ(c1):1) && (c2>=0?READ(c2):1) && (c3>=0?READ(c3):1) && (c4>=0?READ(c4):1);\
380  if(!r) {\
381  r = 255;\
382  if(r2>=0)WRITE(r2,HIGH);if(r3>=0)WRITE(r3,HIGH);if(r4>=0)WRITE(r4,HIGH);\
383  if(r1>=0) {\
384  asm volatile ("nop\nnop\nnop\nnop\nnop");\
385  if(!((c1>=0?READ(c1):1) && (c2>=0?READ(c2):1) && (c3>=0?READ(c3):1) && (c4>=0?READ(c4):1))) r = 0;\
386  else WRITE(r1,HIGH);\
387  }\
388  if(r==255 && r2>=0) {\
389  WRITE(r2,LOW);asm volatile ("nop\nnop\nnop\nnop\nnop");\
390  if(!((c1>=0?READ(c1):1) && (c2>=0?READ(c2):1) && (c3>=0?READ(c3):1) && (c4>=0?READ(c4):1))) r = 4;\
391  else WRITE(r2,HIGH);\
392  }\
393  if(r==255 && r3>=0) {\
394  WRITE(r3,LOW);asm volatile ("nop\nnop\nnop\nnop\nnop");\
395  if(!((c1>=0?READ(c1):0) && (c2>=0?READ(c2):1) && (c3>=0?READ(c3):1) && (c4>=0?READ(c4):1))) r = 8;\
396  else WRITE(r3,HIGH);\
397  }\
398  if(r==255 && r4>=0) {\
399  WRITE(r4,LOW);asm volatile ("nop\nnop\nnop\nnop\nnop");\
400  if(!((c1>=0?READ(c1):1) && (c2>=0?READ(c2):1) && (c3>=0?READ(c3):1) && (c4>=0?READ(c4):1))) r = 12;\
401  else WRITE(r4,HIGH);\
402  }\
403  if(c2>=0 && !READ(c2)) r+=1;\
404  else if(c3>=0 && !READ(c3)) r+=2;\
405  else if(c4>=0 && !READ(c4)) r+=3;\
406  if(r<16) {action = pgm_read_word(&(matrixActions[r]));}\
407  }if(r1>=0)WRITE(r1,LOW);if(r2>=0)WRITE(r2,LOW);if(r3>=0)WRITE(r3,LOW);if(r4>=0)WRITE(r4,LOW);}
408 // I2C keymask tests
409 #define UI_KEYS_I2C_CLICKENCODER_LOW(pinA,pinB) uid.encoderLast = (uid.encoderLast << 2) & 0x0F;if (!(keymask & pinA)) uid.encoderLast |=2;if (!(keymask & pinB)) uid.encoderLast |=1; uid.encoderPos += pgm_read_byte(&encoder_table[uid.encoderLast]);
410 #define UI_KEYS_I2C_CLICKENCODER_LOW_REV(pinA,pinB) uid.encoderLast = (uid.encoderLast << 2) & 0x0F;if (!(keymask & pinA)) uid.encoderLast |=2;if (!(keymask & pinB)) uid.encoderLast |=1; uid.encoderPos -= pgm_read_byte(&encoder_table[uid.encoderLast]);
411 #define UI_KEYS_I2C_BUTTON_LOW(pin,action_) if((keymask & pin)==0) action=action_;
412 #define UI_KEYS_I2C_CLICKENCODER_HIGH(pinA,pinB) uid.encoderLast = (uid.encoderLast << 2) & 0x0F;if (keymask & pinA) uid.encoderLast |=2;if (keymask & pinB) uid.encoderLast |=1; uid.encoderPos += pgm_read_byte(&encoder_table[uid.encoderLast]);
413 #define UI_KEYS_I2C_CLICKENCODER_HIGH_REV(pinA,pinB) uid.encoderLast = (uid.encoderLast << 2) & 0x0F;if (keymask & pinA) uid.encoderLast |=2;if (keymask & pinB) uid.encoderLast |=1; uid.encoderPos -= pgm_read_byte(&encoder_table[uid.encoderLast]);
414 #define UI_KEYS_I2C_BUTTON_HIGH(pin,action_) if((pin & keymask) != 0) action=action_;
415 
416 #define UI_STRING(name,text) const char PROGMEM name[] = text
417 
418 #define UI_PAGE6(name,row1,row2,row3,row4,row5,row6) UI_STRING(name ## _1txt,row1);UI_STRING(name ## _2txt,row2);UI_STRING(name ## _3txt,row3);UI_STRING(name ## _4txt,row4);UI_STRING(name ## _5txt,row5);UI_STRING(name ## _6txt,row6);\
419  UIMenuEntry name ## _1 PROGMEM ={name ## _1txt,0,0,0,0,0};\
420  UIMenuEntry name ## _2 PROGMEM ={name ## _2txt,0,0,0,0,0};\
421  UIMenuEntry name ## _3 PROGMEM ={name ## _3txt,0,0,0,0,0};\
422  UIMenuEntry name ## _4 PROGMEM ={name ## _4txt,0,0,0,0,0};\
423  UIMenuEntry name ## _5 PROGMEM ={name ## _5txt,0,0,0,0,0};\
424  UIMenuEntry name ## _6 PROGMEM ={name ## _6txt,0,0,0,0,0};\
425  const UIMenuEntry * const name ## _entries [] PROGMEM = {&name ## _1,&name ## _2,&name ## _3,&name ## _4,&name ## _5,&name ## _6};\
426  const UIMenu name PROGMEM = {0,0,6,name ## _entries};
427 #define UI_PAGE6_T(name,row1,row2,row3,row4,row5,row6) \
428  UIMenuEntry name ## _1 PROGMEM ={0,0,0,0,0,row1};\
429  UIMenuEntry name ## _2 PROGMEM ={0,0,0,0,0,row2};\
430  UIMenuEntry name ## _3 PROGMEM ={0,0,0,0,0,row3};\
431  UIMenuEntry name ## _4 PROGMEM ={0,0,0,0,0,row4};\
432  UIMenuEntry name ## _5 PROGMEM ={0,0,0,0,0,row5};\
433  UIMenuEntry name ## _6 PROGMEM ={0,0,0,0,0,row6};\
434  const UIMenuEntry * const name ## _entries [] PROGMEM = {&name ## _1,&name ## _2,&name ## _3,&name ## _4,&name ## _5,&name ## _6};\
435  const UIMenu name PROGMEM = {0,0,6,name ## _entries};
436 #define UI_PAGE4(name,row1,row2,row3,row4) UI_STRING(name ## _1txt,row1);UI_STRING(name ## _2txt,row2);UI_STRING(name ## _3txt,row3);UI_STRING(name ## _4txt,row4);\
437  UIMenuEntry name ## _1 PROGMEM ={name ## _1txt,0,0,0,0,0};\
438  UIMenuEntry name ## _2 PROGMEM ={name ## _2txt,0,0,0,0,0};\
439  UIMenuEntry name ## _3 PROGMEM ={name ## _3txt,0,0,0,0,0};\
440  UIMenuEntry name ## _4 PROGMEM ={name ## _4txt,0,0,0,0,0};\
441  const UIMenuEntry * const name ## _entries [] PROGMEM = {&name ## _1,&name ## _2,&name ## _3,&name ## _4};\
442  const UIMenu name PROGMEM = {0,0,4,name ## _entries};
443 #define UI_PAGE4_T(name,row1,row2,row3,row4) \
444  UIMenuEntry name ## _1 PROGMEM ={0,0,0,0,0,row1};\
445  UIMenuEntry name ## _2 PROGMEM ={0,0,0,0,0,row2};\
446  UIMenuEntry name ## _3 PROGMEM ={0,0,0,0,0,row3};\
447  UIMenuEntry name ## _4 PROGMEM ={0,0,0,0,0,row4};\
448  const UIMenuEntry * const name ## _entries [] PROGMEM = {&name ## _1,&name ## _2,&name ## _3,&name ## _4};\
449  const UIMenu name PROGMEM = {0,0,4,name ## _entries};
450 #define UI_PAGE2(name,row1,row2) UI_STRING(name ## _1txt,row1);UI_STRING(name ## _2txt,row2);\
451  UIMenuEntry name ## _1 PROGMEM ={name ## _1txt,0,0,0,0,0};\
452  UIMenuEntry name ## _2 PROGMEM ={name ## _2txt,0,0,0,0,0};\
453  const UIMenuEntry * const name ## _entries[] PROGMEM = {&name ## _1,&name ## _2};\
454  const UIMenu name PROGMEM = {0,0,2,name ## _entries};
455 #define UI_PAGE2_T(name,row1,row2) \
456  UIMenuEntry name ## _1 PROGMEM ={0,0,0,0,0,row1};\
457  UIMenuEntry name ## _2 PROGMEM ={0,0,0,0,0,row2};\
458  const UIMenuEntry * const name ## _entries[] PROGMEM = {&name ## _1,&name ## _2};\
459  const UIMenu name PROGMEM = {0,0,2,name ## _entries};
460 #define UI_WIZARD4(name,action,row1,row2,row3,row4) UI_STRING(name ## _1txt,row1);UI_STRING(name ## _2txt,row2);UI_STRING(name ## _3txt,row3);UI_STRING(name ## _4txt,row4);\
461  UIMenuEntry name ## _1 PROGMEM ={name ## _1txt,0,0,0,0,0};\
462  UIMenuEntry name ## _2 PROGMEM ={name ## _2txt,0,0,0,0,0};\
463  UIMenuEntry name ## _3 PROGMEM ={name ## _3txt,0,0,0,0,0};\
464  UIMenuEntry name ## _4 PROGMEM ={name ## _4txt,0,0,0,0,0};\
465  const UIMenuEntry * const name ## _entries [] PROGMEM = {&name ## _1,&name ## _2,&name ## _3,&name ## _4};\
466  const UIMenu name PROGMEM = {5,action,4,name ## _entries};
467 #define UI_WIZARD4_T(name,action,row1,row2,row3,row4) \
468  UIMenuEntry name ## _1 PROGMEM ={0,0,0,0,0,row1};\
469  UIMenuEntry name ## _2 PROGMEM ={0,0,0,0,0,row2};\
470  UIMenuEntry name ## _3 PROGMEM ={0,0,0,0,0,row3};\
471  UIMenuEntry name ## _4 PROGMEM ={0,0,0,0,0,row4};\
472  const UIMenuEntry * const name ## _entries [] PROGMEM = {&name ## _1,&name ## _2,&name ## _3,&name ## _4};\
473  const UIMenu name PROGMEM = {5,action,4,name ## _entries};
474 #define UI_WIZARD5_T(name,action,row1,row2,row3,row4,row5) \
475 UIMenuEntry name ## _1 PROGMEM ={0,0,0,0,0,row1};\
476 UIMenuEntry name ## _2 PROGMEM ={0,0,0,0,0,row2};\
477 UIMenuEntry name ## _3 PROGMEM ={0,0,0,0,0,row3};\
478 UIMenuEntry name ## _4 PROGMEM ={0,0,0,0,0,row4};\
479 UIMenuEntry name ## _5 PROGMEM ={0,0,0,0,0,row5};\
480 const UIMenuEntry * const name ## _entries [] PROGMEM = {&name ## _1,&name ## _2,&name ## _3,&name ## _4,&name ## _5};\
481 const UIMenu name PROGMEM = {5,action,5,name ## _entries};
482 #define UI_WIZARD2(name,action,row1,row2) UI_STRING(name ## _1txt,row1);UI_STRING(name ## _2txt,row2);\
483  UIMenuEntry name ## _1 PROGMEM ={name ## _1txt,0,0,0,0,0};\
484  UIMenuEntry name ## _2 PROGMEM ={name ## _2txt,0,0,0,0,0};\
485  const UIMenuEntry * const name ## _entries[] PROGMEM = {&name ## _1,&name ## _2};\
486  const UIMenu name PROGMEM = {5,action,2,name ## _entries};
487 #define UI_WIZARD2_T(name,action,row1,row2) \
488  UIMenuEntry name ## _1 PROGMEM ={0,0,0,0,0,row1};\
489  UIMenuEntry name ## _2 PROGMEM ={0,0,0,0,0,row2};\
490  const UIMenuEntry * const name ## _entries[] PROGMEM = {&name ## _1,&name ## _2};\
491  const UIMenu name PROGMEM = {5,action,2,name ## _entries};
492 #define UI_MENU_ACTION4C(name,action,rows) UI_MENU_ACTION4(name,action,rows)
493 #define UI_MENU_ACTION2C(name,action,rows) UI_MENU_ACTION2(name,action,rows)
494 #define UI_MENU_ACTION4C_T(name,action,rows) UI_MENU_ACTION4_T(name,action,rows)
495 #define UI_MENU_ACTION2C_T(name,action,rows) UI_MENU_ACTION2_T(name,action,rows)
496 #define UI_MENU_ACTION4(name,action,row1,row2,row3,row4) UI_STRING(name ## _1txt,row1);UI_STRING(name ## _2txt,row2);UI_STRING(name ## _3txt,row3);UI_STRING(name ## _4txt,row4);\
497  UIMenuEntry name ## _1 PROGMEM ={name ## _1txt,0,0,0,0,0};\
498  UIMenuEntry name ## _2 PROGMEM ={name ## _2txt,0,0,0,0,0};\
499  UIMenuEntry name ## _3 PROGMEM ={name ## _3txt,0,0,0,0,0};\
500  UIMenuEntry name ## _4 PROGMEM ={name ## _4txt,0,0,0,0,0};\
501  const UIMenuEntry * const name ## _entries[] PROGMEM = {&name ## _1,&name ## _2,&name ## _3,&name ## _4};\
502  const UIMenu name PROGMEM = {3,action,4,name ## _entries};
503 #define UI_MENU_ACTION4_T(name,action,row1,row2,row3,row4) \
504  UIMenuEntry name ## _1 PROGMEM ={0,0,0,0,0,row1};\
505  UIMenuEntry name ## _2 PROGMEM ={0,0,0,0,0,row2};\
506  UIMenuEntry name ## _3 PROGMEM ={0,0,0,0,0,row3};\
507  UIMenuEntry name ## _4 PROGMEM ={0,0,0,0,0,row4};\
508  const UIMenuEntry * const name ## _entries[] PROGMEM = {&name ## _1,&name ## _2,&name ## _3,&name ## _4};\
509  const UIMenu name PROGMEM = {3,action,4,name ## _entries};
510 #define UI_MENU_ACTION2(name,action,row1,row2) UI_STRING(name ## _1txt,row1);UI_STRING(name ## _2txt,row2);\
511  UIMenuEntry name ## _1 PROGMEM ={name ## _1txt,0,0,0,0,0};\
512  UIMenuEntry name ## _2 PROGMEM ={name ## _2txt,0,0,0,0,0};\
513  const UIMenuEntry * const name ## _entries[] PROGMEM = {&name ## _1,&name ## _2};\
514  const UIMenu name PROGMEM = {3,action,2,name ## _entries};
515 #define UI_MENU_ACTION2_T(name,action,row1,row2) \
516  UIMenuEntry name ## _1 PROGMEM ={0,0,0,0,0,row1};\
517  UIMenuEntry name ## _2 PROGMEM ={0,0,0,0,0,row2};\
518  const UIMenuEntry * const name ## _entries[] PROGMEM = {&name ## _1,&name ## _2};\
519  const UIMenu name PROGMEM = {3,action,2,name ## _entries};
520 #define UI_MENU_HEADLINE(name,text) UI_STRING(name ## _txt,text);UIMenuEntry name PROGMEM = {name ## _txt,1,0,0,0,0};
521 #define UI_MENU_HEADLINE_T(name,text) UIMenuEntry name PROGMEM = {0,1,0,0,0,text};
522 #define UI_MENU_CHANGEACTION(name,row,action) UI_STRING(name ## _txt,row);UIMenuEntry name PROGMEM = {name ## _txt,4,action,0,0,0};
523 #define UI_MENU_CHANGEACTION_T(name,row,action) UIMenuEntry name PROGMEM = {0,4,action,0,0,row};
524 #define UI_MENU_ACTIONCOMMAND(name,row,action) UI_STRING(name ## _txt,row);UIMenuEntry name PROGMEM = {name ## _txt,3,action,0,0,0};
525 #define UI_MENU_ACTIONCOMMAND_T(name,rowId,action) UIMenuEntry name PROGMEM = {0,3,action,0,0,rowId};
526 #define UI_MENU_ACTIONSELECTOR(name,row,entries) UI_STRING(name ## _txt,row);UIMenuEntry name PROGMEM = {name ## _txt,2,(unsigned int)&entries,0,0,0};
527 #define UI_MENU_ACTIONSELECTOR_T(name,row,entries) UIMenuEntry name PROGMEM = {0,2,(unsigned int)&entries,0,0,row};
528 #define UI_MENU_SUBMENU(name,row,entries) UI_STRING(name ## _txt,row);UIMenuEntry name PROGMEM = {name ## _txt,2,(unsigned int)&entries,0,0,0};
529 #define UI_MENU_SUBMENU_T(name,row,entries) UIMenuEntry name PROGMEM = {0,2,(unsigned int)&entries,0,0,row};
530 #define UI_MENU_WIZARD(name,row,entries) UI_STRING(name ## _txt,row);UIMenuEntry name PROGMEM = {name ## _txt,5,(unsigned int)&entries,0,0,0};
531 #define UI_MENU_WIZARD_T(name,row,entries) UIMenuEntry name PROGMEM = {0,5,(unsigned int)&entries,0,0,row};
532 #define UI_MENU_CHANGEACTION_FILTER(name,row,action,filter,nofilter) UI_STRING(name ## _txt,row);UIMenuEntry name PROGMEM = {name ## _txt,4,action,filter,nofilter,0};
533 #define UI_MENU_CHANGEACTION_FILTER_T(name,row,action,filter,nofilter) UIMenuEntry name PROGMEM = {0,4,action,filter,nofilter,row};
534 #define UI_MENU_ACTIONCOMMAND_FILTER(name,row,action,filter,nofilter) UI_STRING(name ## _txt,row);UIMenuEntry name PROGMEM = {name ## _txt,3,action,filter,nofilter,0};
535 #define UI_MENU_ACTIONCOMMAND_FILTER_T(name,row,action,filter,nofilter) UIMenuEntry name PROGMEM = {0,3,action,filter,nofilter,row};
536 #define UI_MENU_ACTIONSELECTOR_FILTER(name,row,entries,filter,nofilter) UI_STRING(name ## _txt,row);UIMenuEntry name PROGMEM = {name ## _txt,2,(unsigned int)&entries,filter,nofilter,0};
537 #define UI_MENU_ACTIONSELECTOR_FILTER_T(name,row,entries,filter,nofilter) UIMenuEntry name PROGMEM = {0,2,(unsigned int)&entries,filter,nofilter,row};
538 #define UI_MENU_SUBMENU_FILTER(name,row,entries,filter,nofilter) UI_STRING(name ## _txt,row);UIMenuEntry name PROGMEM = {name ## _txt,2,(unsigned int)&entries,filter,nofilter,0};
539 #define UI_MENU_SUBMENU_FILTER_T(name,row,entries,filter,nofilter) UIMenuEntry name PROGMEM = {0,2,(unsigned int)&entries,filter,nofilter,row};
540 #define UI_MENU(name,items,itemsCnt) const UIMenuEntry * const name ## _entries[] PROGMEM = items;const UIMenu name PROGMEM = {2,0,itemsCnt,name ## _entries};
541 #define UI_STICKYMENU(name,items,itemsCnt) const UIMenuEntry * const name ## _entries[] PROGMEM = items;const UIMenu name PROGMEM = {2+128,0,itemsCnt,name ## _entries};
542 #define UI_MENU_FILESELECT(name,items,itemsCnt) const UIMenuEntry * const name ## _entries[] PROGMEM = items;const UIMenu name PROGMEM = {1,0,itemsCnt,name ## _entries};
543 
544 #if FEATURE_CONTROLLER == CONTROLLER_SMARTRAMPS || FEATURE_CONTROLLER == CONTROLLER_GADGETS3D_SHIELD || FEATURE_CONTROLLER == CONTROLLER_BAM_DICE_DUE || (FEATURE_CONTROLLER == CONTROLLER_REPRAPDISCOUNT_GLCD && MOTHERBOARD != CONTROLLER_FELIX_DUE && MOTHERBOARD != 101)
545 #undef SDCARDDETECT
546 #if MOTHERBOARD == 37
547 #define SDCARDDETECT ORIG_SDCARDDETECT
548 #else
549 #define SDCARDDETECT 49
550 #endif
551 #undef SDCARDDETECTINVERTED
552 #define SDCARDDETECTINVERTED 0
553 #undef SDSUPPORT
554 #define SDSUPPORT 1
555 #endif
556 
557 #if FEATURE_CONTROLLER == CONTROLLER_VIKI2
558 #undef SDCARDDETECT
559 #define SDCARDDETECT -1
560 #undef SDSUPPORT
561 #define SDSUPPORT 1
562 #endif
563 
564 #if FEATURE_CONTROLLER == CONTROLLER_RAMBO
565 #undef SDCARDDETECT
566 #define SDCARDDETECT 81
567 #undef SDCARDDETECTINVERTED
568 #define SDCARDDETECTINVERTED 0
569 #undef SDSUPPORT
570 #define SDSUPPORT 1
571 #endif
572 
573 
574 // Maximum size of a row - if row is larger, text gets scrolled
575 #if defined(UI_DISPLAY_TYPE) && UI_DISPLAY_TYPE == DISPLAY_GAMEDUINO2
576 #define MAX_COLS 50
577 #else
578 #define MAX_COLS 28
579 #endif
580 #define UI_MENU_MAXLEVEL 7
581 
582 #define UI_FLAG_FAST_KEY_ACTION 1
583 #define UI_FLAG_SLOW_KEY_ACTION 2
584 #define UI_FLAG_SLOW_ACTION_RUNNING 4
585 #define UI_FLAG_KEY_TEST_RUNNING 8
586 
587 class GCode;
588 class UIDisplay {
589  public:
590  volatile uint8_t flags; // 1 = fast key action, 2 = slow key action, 4 = slow action running, 8 = key test running
591  uint8_t col; // current col for buffer pre fill
592  uint8_t menuLevel; // current menu level, 0 = info, 1 = group, 2 = groupdata select, 3 = value change
593  uint16_t menuPos[UI_MENU_MAXLEVEL]; // Positions in menu
594  const UIMenu *menu[UI_MENU_MAXLEVEL]; // Menus active
595  uint16_t menuTop[UI_MENU_MAXLEVEL]; // Top row in menu
596  int8_t shift; // Display shift for scrolling text
597  int pageDelay; // Counter. If 0 page is refreshed if menuLevel is 0.
598  void *errorMsg;
599  uint16_t activeAction; // action for ok/next/previous
600  uint16_t lastAction;
601  uint16_t delayedAction;
602  millis_t lastSwitch; // Last time display switched pages
606  millis_t nextRepeat; // Time of next autorepeat
607  millis_t lastNextPrev; // for increasing speed settings
608  float lastNextAccumul; // Accumulated value
609  unsigned int outputMask; // Output mask for back light, leds etc.
610  int repeatDuration; // Time between to actions if autorepeat is enabled
611  int8_t oldMenuLevel;
613  char printCols[MAX_COLS + 1];
614  void addInt(int value, uint8_t digits, char fillChar = ' '); // Print int into printCols
615  void addLong(long value, int8_t digits);
616  inline void addLong(long value) {
617  addLong(value, -11);
618  };
619  void addFloat(float number, char fixdigits, uint8_t digits);
620  inline void addFloat(float number) {
621  addFloat(number, -9, 2);
622  };
623  void addStringP(PGM_P text);
624  void addString(char* text);
625  void addStringOnOff(uint8_t);
626  void addChar(const char c);
627  void addGCode(GCode *code);
628  int okAction(bool allowMoves);
629  bool nextPreviousAction(int16_t next, bool allowMoves);
630  char statusMsg[21];
631  int8_t encoderPos;
632  int8_t encoderLast;
633  UIDisplay();
634  void createChar(uint8_t location, const uint8_t charmap[]);
635  void initialize(); // Initialize display and keys
636  void waitForKey();
637  void printRow(uint8_t r, char *txt, char *txt2, uint8_t changeAtCol); // Print row on display
638  void printRowP(uint8_t r, PGM_P txt);
639  void parse(const char *txt, bool ram);
640  void refreshPage();
641  int executeAction(unsigned int action, bool allowMoves);
642  void finishAction(unsigned int action);
643  void slowAction(bool allowMoves);
644  void fastAction();
645  void mediumAction();
646  void pushMenu(const UIMenu *men, bool refresh);
647  void popMenu(bool refresh);
648  void showMessage(int id);
649  void adjustMenuPos();
650  void setStatusP(PGM_P txt, bool error = false);
651  void setStatus(const char *txt, bool error = false);
652  inline void setOutputMaskBits(unsigned int bits) {
653  outputMask |= bits;
654  }
655  inline void unsetOutputMaskBits(unsigned int bits) {
656  outputMask &= ~bits;
657  }
658  void updateSDFileCount();
659  void goDir(char *name);
660  bool isDirname(char *name);
661  bool isWizardActive();
662  bool isSticky();
663  void showLanguageSelectionWizard();
664 #if UI_BED_COATING
665  void menuAdjustHeight(const UIMenu *men, float offset);
666 #endif
668  uint8_t folderLevel;
669 };
670 extern UIDisplay uid;
671 
672 
673 
674 #endif
675 
uint16_t lastAction
Definition: ui.h:600
void setOutputMaskBits(unsigned int bits)
Definition: ui.h:652
millis_t nextRepeat
Definition: ui.h:606
void unsetOutputMaskBits(unsigned int bits)
Definition: ui.h:655
uint16_t delayedAction
Definition: ui.h:601
Definition: ui.h:588
void * errorMsg
Definition: ui.h:598
millis_t lastButtonStart
Definition: ui.h:605
millis_t lastSwitch
Definition: ui.h:602
Definition: gcode.h:91
#define MAX_COLS
Definition: ui.h:578
uint8_t folderLevel
Definition: ui.h:668
const UIMenu_s UIMenu
Definition: ui.h:342
int numEntries
Definition: ui.h:339
uint16_t lastButtonAction
Definition: ui.h:604
UIDisplay uid
Definition: ui.cpp:144
int8_t encoderLast
Definition: ui.h:632
int translation
Definition: ui.h:325
int id
Definition: ui.h:338
const UIMenuEntry *const * entries
Definition: ui.h:340
uint16_t nofilter
Definition: ui.h:324
int8_t shift
Definition: ui.h:596
uint8_t entryType
Definition: ui.h:321
bool showEntry() const
Definition: ui.cpp:132
millis_t lastNextPrev
Definition: ui.h:607
void addLong(long value)
Definition: ui.h:616
const int8_t encoder_table [16] PROGMEM
Definition: Commands.cpp:24
const char * text
Definition: ui.h:320
millis_t lastRefresh
Definition: ui.h:603
unsigned int action
Definition: ui.h:322
const UIMenuEntry_s UIMenuEntry
Definition: ui.h:328
uint8_t menuLevel
Definition: ui.h:592
uint16_t filter
Definition: ui.h:323
void addFloat(float number)
Definition: ui.h:620
uint32_t millis_t
Definition: HAL.h:158
#define LONG_FILENAME_LENGTH
Definition: Repetier.h:586
uint16_t activeAction
Definition: ui.h:599
int pageDelay
Definition: ui.h:597
#define UI_MENU_MAXLEVEL
Definition: ui.h:580
int repeatDuration
Definition: ui.h:610
float lastNextAccumul
Definition: ui.h:608
Definition: ui.h:319
uint8_t col
Definition: ui.h:591
uint8_t menuType
Definition: ui.h:337
#define SD_MAX_FOLDER_DEPTH
Definition: Repetier.h:587
unsigned int outputMask
Definition: ui.h:609
volatile uint8_t flags
Definition: ui.h:590
int8_t encoderPos
Definition: ui.h:631
int8_t oldMenuLevel
Definition: ui.h:611
uint8_t encoderStartScreen
Definition: ui.h:612
Definition: ui.h:330